<?php
/**
 * 订单总价(销售价)。
 * @param object $current_line_price
 * @param number $adult_num
 * @param number $children_num
 * @return number
 */
function checkoutPayOriginalSubtotal($current_line_price, $adult_num, $children_num)
{
    return ($current_line_price->adult_original_price * $adult_num) + ($current_line_price->children_original_price * $children_num);

}

/**
 * 订单总价(供应价)。
 * @param object $current_line_price
 * @param number $adult_num
 * @param number $children_num
 * @return number
 */
function checkoutPaySubtotal($current_line_price, $adult_num, $children_num)
{
    return ($current_line_price->adult_price * $adult_num) + ($current_line_price->children_price * $children_num);
}